package com.pdsu.alumni.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Acerola
 * @since 2022-04-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_community")
@ApiModel(value="Community对象", description="")
public class Community implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "社群唯一标识")
    private Integer id;

    @ApiModelProperty(value = "社群名称")
    private String name;

    @ApiModelProperty(value = "社群简介")
    private String introduce;

    @ApiModelProperty(value = "社群类别 1表示行业社群   2表示地区社群")
    private Integer type;

    @ApiModelProperty(value = "组织结构")
    private String organizationStructure;

    @ApiModelProperty(value = "组织章程")
    private String organizationRules;

    @ApiModelProperty(value = "社群创建时间")
    private Date date;

    @ApiModelProperty(value = "地区")
    private String region;

    @ApiModelProperty(value = "审核状态 0待审核 1已审核  2审核失败")
    private Integer state;

    @ApiModelProperty(value = "社群人数限制")
    @TableField("numberLimit")
    private Integer numberLimit;

    @ApiModelProperty(value = "是否推荐")
    private Boolean recommend;


    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除,1启用,0删除")
    @TableLogic
    private Integer deleted;

}
